CC=gcc
CFLAGS= -std=c99 -g -Wall
LIBS=

TARGETS = server client server_udp client_udp 

.PHONY:all clean

all:$(TARGETS)

server:server.c
	$(CC) $(CFLAGS) $(LIBS) $^ -o $@

client:client.c
	$(CC) $(CFLAGS) $(LIBS) $^ -o $@

server_udp:server_udp.c
	$(CC) $(CFLAGS) $(LIBS) $^ -o $@

client_udp:client_udp.c
	$(CC) $(CFLAGS) $(LIBS) $^ -o $@

clean:
	@rm -rf $(TARGETS) 
